
<%@ page import="condicao.CondicaoDeCompra" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main" />
  <g:set var="entityName" value="${message(code:'condicaoDeCompra.label', default:'CondicaoDeCompra')}" />
  <title>Show ${entityName}</title>
</head>
<body>
  <div class="nav">
    <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
    <span class="menuButton"><g:link class="list" action="list">${entityName} List</g:link></span>
    <span class="menuButton"><g:link class="create" action="create">New ${entityName}</g:link></span>
  </div>
  <div class="body">
    <h1>Show ${entityName}</h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
      <table>
        <tbody>


<%/*<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.id.label" default="Id" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'id')}</td>

</tr>*/%>

          <tr class="prop">
            <td valign="top" class="name">
        <g:message code="condicaoDeCompra.tdescricao.label" default="Tdescricao" />:
        </td>

        <td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tdescricao')}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name">
        <g:message code="condicaoDeCompra.tforma_parcelamento_chk.label" default="Tformaparcelamentochk" />:
        </td>

        <td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tformaParcelamentoChk')}
        [A - Parcelado Normal, B - Prazo Fixo, C - Prazo Diferenciado]
        </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
        <g:message code="condicaoDeCompra.tpossui_entrada_chk.label" default="Tpossuientradachk" />:
        </td>

        <td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tpossuiEntradaChk')}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name">
        <g:message code="condicaoDeCompra.tgrupo_comissao_fk.label" default="Tgrupocomissaofk" />:
        </td>

        <td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tgrupoComissaoFk')}</td>

        </tr>

<%/*<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.tparcela_pk.label" default="Tparcelapk" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tparcela_pk')}</td>

</tr>

<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.tnum_dias_vencimento.label" default="Tnumdiasvencimento" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tnum_dias_vencimento')}</td>

</tr>

<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.tpercentual_parcela.label" default="Tpercentualparcela" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tpercentual_parcela')}</td>

</tr>

<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.tcodigo_pk.label" default="Tcodigopk" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tcodigo_pk')}</td>

</tr>

<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.tdia_vencimento1.label" default="Tdiavencimento1" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tdia_vencimento1')}</td>

</tr>

<tr class="prop">
<td valign="top" class="name">
<g:message code="condicaoDeCompra.tdia_vencimento2.label" default="Tdiavencimento2" />:
</td>

<td valign="top" class="value">${fieldValue(bean:condicaoDeCompraInstance, field:'tdia_vencimento2')}</td>

</tr>*/%>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <g:form>
        <input type="hidden" name="id" value="${condicaoDeCompraInstance?.tcodigoPk}" />
        <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
        <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
      </g:form>
    </div>
    <div class="list">
        <table>
          <thead>
            <tr>

          <g:sortableColumn property="tpercentual_parcela" title="${message(code:'condicaoDeCompra.tpercentual_parcela.label', default:'% parcela')}" />

          <g:sortableColumn property="tnum_dias_vencimento" title="${message(code:'condicaoDeCompra.tnum_dias_vencimento.label', default:'Nº Dias Vencimento')}" />

          <g:sortableColumn property="tdia_vencimento1" title="${message(code:'condicaoDeCompra.tdia_vencimento1.label', default:'Dia vencimento 1')}" />

          <g:sortableColumn property="tdia_vencimento2" title="${message(code:'condicaoDeCompra.tdia_vencimento2.label', default:'Dia vencimento 2')}" />

          </tr>
          </thead>
          <tbody>
          <g:each in="${condicaoDeCompraInstanceList}" status="i" var="condicaoDeCompraInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

<%//<td><g:link action="show" id="${condicaoDeCompraInstance.tparcela_pk}">${fieldValue(bean:condicaoDeCompraInstance, field:'tparcela_pk')}</g:link></td>%>

              <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tpercentualParcela')}</td>

              <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tnumDiasVencimento')}</td>

              <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tdiaVencimento1')}</td>

              <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tdiaVencimento2')}</td>

            </tr>
          </g:each>
          </tbody>
        </table>
      </div>
      <div class="paginateButtons">
        <g:if test="${condicaoDeCompraInstanceList == null}">
          <g:paginate total="0" />
        </g:if>
        <g:else>
          <g:paginate total="${condicaoDeCompraInstanceList.size()}" />
        </g:else>
      </div>
  </div>
</body>
</html>
